import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Demo8 {
    public static void main(String[] args) throws IOException {
        try (OutputStream stream = new FileOutputStream("./text.txt", true)){
        byte[] buffer = new byte[]{(byte) 0xe4, (byte) 0xbd, (byte) 0xa0, (byte) 0xe5, (byte) 0xa5, (byte) 0xbd};
        stream.write(buffer);
        }
    }
}
